package com.cmc.cloud.cmclink.doc.service;

import java.util.*;
import javax.validation.*;

import com.cmc.cloud.cmclink.doc.vo.rejectreasonvo.RejectReasonCreateReqVO;
import com.cmc.cloud.cmclink.doc.entity.RejectReasonDO;
import com.cmc.cloud.cmclink.doc.vo.rejectreasonvo.RejectReasonPageReqVO;
import com.cmc.cloud.cmclink.doc.vo.rejectreasonvo.RejectReasonUpdateReqVO;
import com.cmes.framework.common.pojo.PageResult;

/**
 * 常用订舱拒绝理由 Service 接口
 *
 * @author 招商轮船-管理员
 */
public interface RejectReasonService {

    /**
     * 创建常用订舱拒绝理由
     *
     * @param createReqVO 创建信息
     */
    void createRejectReason(@Valid RejectReasonCreateReqVO createReqVO);

    /**
     * 更新常用订舱拒绝理由
     *
     * @param updateReqVO 更新信息
     */
    void updateRejectReason(@Valid RejectReasonUpdateReqVO updateReqVO);

    /**
     * 删除常用订舱拒绝理由
     *
     * @param id 编号
     */
    void deleteRejectReason(Long id);

    /**
     * 获得常用订舱拒绝理由
     *
     * @param id 编号
     * @return 常用订舱拒绝理由
     */
    RejectReasonDO getRejectReason(Long id);

    /**
     * 获得常用订舱拒绝理由列表
     *
     * @return 常用订舱拒绝理由列表
     */
    List<RejectReasonDO> getRejectReasonList();

    /**
     * 获得常用订舱拒绝理由列表
     *
     * @param enable 启用标志
     * @return 常用订舱拒绝理由列表
     */
    List<RejectReasonDO> getRejectReasonEnableList(Boolean enable);

    /**
     * 获得常用订舱拒绝理由分页
     *
     * @param pageReqVO 分页查询
     * @return 常用订舱拒绝理由分页
     */
    PageResult<RejectReasonDO> getRejectReasonPage(RejectReasonPageReqVO pageReqVO);

}
